@model ShivamEMR.Model.Domain.UserDomain.UserRight

@{
    ViewBag.Title = "Details";
    Layout = "~/Views/Shared/_Layout.cshtml";  
}

<h2>Details</h2>

<fieldset>
    <legend>UserRight</legend>

    <div class="display-label">RightCode</div>
    <div class="display-field">@Model.RightCode</div>

    <div class="display-label">Title</div>
    <div class="display-field">@Model.Title</div>

    <div class="display-label">Description</div>
    <div class="display-field">@Model.Description</div>

    <div class="display-label">Target</div>
    <div class="display-field">@Model.Target</div>

    <div class="display-label">Weight</div>
    <div class="display-field">@Model.Weight</div>

    <div class="display-label">Notes</div>
    <div class="display-field">@Model.Notes</div>

    <div class="display-label">Group</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.Group.Group).ToString()</div>

    <div class="display-label">Type</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.Type.Type).ToString()</div>

   @* <div class="display-label">Permissions</div>
    <div class="display-field">@(Model.Permissions == null ? "None" : Model.Permissions.Count.ToString())</div>
*@
@*    <div class="display-label">UserRoles</div>
    <div class="display-field">@(Model.UserRoles == null ? "None" : Model.UserRoles.Count.ToString())</div>*@
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.ID }) |
    @Html.ActionLink("Back to List", "Index")
</p>


